﻿using Core.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandProcessor.Command
{
    public interface IValidationHandler<in TCommand> where TCommand : ICommand
    {
        //Dinh nghia lop bat loi
        IEnumerable<ValidationResult> Validate(TCommand command);
        IEnumerable<ValidationResult> ValidateRange(IEnumerable<TCommand> commands);
    }
}
